<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
{$page_title}{if !$hide_end_title} - {$shop_info.SHOP_TITLE}{if $city_title} - {$city_title}{$LANG.SITE}{/if}{/if} - 
	{if $deal_city.seo_title eq ''}
	{function name='app_conf' value='SHOP_SEO_TITLE'}
	{else}
	{$deal_city.seo_title}
	{/if}	
</title>
<meta name="keywords" content="{$page_keyword}{$city_title}{$shop_info.SHOP_KEYWORD}" />
<meta name="description" content="{$page_description}{$city_title}{$shop_info.SHOP_DESCRIPTION}" />
<link rel="stylesheet" type="text/css" href="{$TMPL}/css/style.css" />
<link rel="stylesheet" type="text/css" href="{$TMPL}/css/weebox.css" />
<script type="text/javascript">
var APP_ROOT = '{$APP_ROOT}';
var CART_URL = '{function name="url_pack" value="cart"}';
var CART_CHECK_URL = '{function name="url_pack" value="cart#check"}';
</script>
<script type="text/javascript" src="{$TMPL}/js/jquery.js"></script>
<script type="text/javascript" src="{$TMPL}/js/script.js"></script>
<script type="text/javascript" src="{$TMPL}/js/jquery.bgiframe.js"></script>
<script type="text/javascript" src="{$TMPL}/js/jquery.weebox.js"></script>
<script type="text/javascript" src="{$APP_ROOT}/app/Runtime/lang.js"></script>
<script type="text/javascript" src="{$TMPL}/js/jquery.pngfix.js"></script>
{if app_conf("APP_MSG_SENDER_OPEN") eq 1}
<script type="text/javascript" src="{$TMPL}/js/msg_sender.js"></script>
{/if}
</head>

<body class="bg-alt">
<div id="doc">
	<div id="hdw">
		<div class="head">
        <div id="hd">
            <div id="logo">
				<a class="link" href="{$APP_ROOT}/"><img src="{function name="app_conf" value="SHOP_LOGO"}" /></a>
			</div>
			{if count($deal_city_list) gt 1}
            <div class="guides">
                <div class="city">
                    <h2>{$deal_city.name}</h2>

                </div>
                <div id="guides-city-change" class="change">{$LANG.SWITCH_CITY}</div>
                <div id="guides-city-list" class="city-list">
                    <ul>
						{foreach from=$deal_city_list item=deal_city_item}
						<li {if $deal_city_item.id eq $deal_city.id}class="current"{/if}><a href="{$deal_city_item.url}" {if $deal_city_item.is_open eq 1}class="opencity"{/if}>{$deal_city_item.name}</a></li>
						{/foreach}
					  </ul>

                </div>
            </div>
			{/if}
            <ul class="nav cf">
				{foreach from=$nav_list item=nav_item}
				<li><a href="{$nav_item.url}"  target="{if $nav_item.blank eq 1}_blank{/if}" {if $nav_item.current eq 1}class="current"{/if}>{$nav_item.name}</a></li>
				{/foreach}      
			</ul>

            <div class="refer">
            {if app_conf("SMS_ON") eq 1}
			» <a href="javascript:void(0)" onclick="submit_sms();">{$LANG.SMS_SUBSCRIBE}</a>&nbsp;&nbsp;
			» <a href="javascript:void(0)" onclick="unsubmit_sms();">{$LANG.SMS_UNSUBSCRIBE}</a>&nbsp;&nbsp;
			{/if}
			» <a href="{function name="url_pack" value="subscribe#mail"}">{$LANG.MAIL_SUBSCRIBE}</a>&nbsp;&nbsp;
			» <a href="{function name="url_pack" value="coupon#verify"}">{$LANG.VERIFY_COUPON}</a>&nbsp;&nbsp;
			</div>
            <div class="logins">
            {if $user_info}
			<ul rel="" id="account">
			<li title="{$user_info.user_name}" class="username">{$LANG.WELCOME}，{function name="msubstr" value=$user_info.user_name start="0" length="4"}！</li>
			<li class="account"><a class="account" id="myaccount" href="{function name="url_pack" value="uc_account#index"}">{$LANG.MY_ACCOUNT}</a></li>
			<li class="logout"><a href="{function name="url_pack" value="user#loginout"}">{$LANG.LOGINOUT}</a></li>
			</ul>
			{else}
			<ul id="account" rel="">
			<li class="login"><a href="{function name="url_pack" value="user#login"}">{$LANG.LOGIN}</a></li>
            <li class="signup"><a href="{function name="url_pack" value="user#register"}">{$LANG.REGISTER}</a></li>
			</ul>
			{/if}
			
			
			
			
            <div class="line"></div>
            </div>
			<ul id="myaccount-menu">
			{foreach from=$user_menu item=menu_item}
			<li><a href="{$menu_item.url}">{$menu_item.name}</a></li>
			{/foreach}
			 </ul>
			<div id="head-tel">{function name="app_conf" value="SHOP_TEL"}</div>        
			</div>
		</div>
    </div>
	
	
	<div class="blank"></div>
	<!--adBox-->
	<div style=" width:960px; margin:0px auto;"><adv adv_id="头部广告位" /></div>
	<!--end advBox-->
	
	<div id="sysmsg-error-box">
		<div class="sysmsgw hidd" id="sysmsg-error">
			<div class="sysmsg"><span></span><span class="close">{$LANG.CLOSE}</span></div>
		</div>		

		<div class="sysmsgw hidd" id="sysmsg-success">
				<div class="sysmsg"><span></span><span class="close">{$LANG.CLOSE}</span></div>
		</div>
	</div>
	<script type="text/javascript">
		{if $success}
		$.showSuccess("{$success}");
		{/if}
		{if $error}
		$.showErr("{$error}");
		{/if}
	</script>
